Skip to content

docs(vrl): Automatically generate VRL function documentation#24719

Merged
thomasqueirozb merged 123 commits intomasterfrom
automatic-vrl-documentation-website
Mar 7, 2026
Merged

docs(vrl): Automatically generate VRL function documentation#24719
thomasqueirozb merged 123 commits intomasterfrom
automatic-vrl-documentation-website

Conversation

@thomasqueirozb
Copy link
Contributor

@thomasqueirozb thomasqueirozb commented Feb 23, 2026

Summary

Last part of the automatic doc generation RFC vectordotdev/vrl#280

A lot of my verification for the changes done in this were via a very handy website diff viewer (https://pianomister.github.io/). I suggest setting the display to iPad and zooming out to 90%. Use this link to get see the differences between the current website and the deployed branch.

Many many issues were fixed. The following are (very likely incomplete) lists of the most notable fixes and changes:

"breaking" difference

  • exists argument is no longer type path and is now type any. There is no way to indicate path arguments in the type system currently.

Parameter type fixes

fn parameter old fixed
validate_json_schema value any string
validate_json_schema schema_definition any string
chunks param <array | string> string
parse_timestamp value string <timestamp | string>
uuid_from_friendly_id value timestamp string
parse_regex numeric_groups regex boolean
parse_regex_all numeric_groups regex boolean
ip_ntoa param string integer
truncate limit <integer | float> integer

Parameters with incorrect names

fn old fixed
ip_cidr_contains ip value
ip_to_ipv6 ip value
ipv6_to_ipv4 ip value
ip_subnet ip value
sieve pattern permitted_characters
exists path field

Other fixes

  • decode_lz4: buf_size's default value
  • aggregate_vector_metric -> aggregate_vector_metrics (title)
  • format_number: grouping_separator incorrect default
  • strip_ansi_codes: removed invalid example
  • truncate: ellipsis parameter removed
  • parse_xml: trim parameter was missing
  • Added many parameter defaults. (e.g. decode_lz4, encode_lz4, encode_json, encode_key_value, encode_logfmt)

Vector configuration

NA

How did you test this PR?

make generate-docs && cd website && make serve

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

@thomasqueirozb

This comment was marked as off-topic.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@thomasqueirozb thomasqueirozb enabled auto-merge March 6, 2026 16:49
@thomasqueirozb thomasqueirozb added this pull request to the merge queue Mar 6, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 6, 2026
@thomasqueirozb thomasqueirozb added this pull request to the merge queue Mar 6, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@thomasqueirozb thomasqueirozb enabled auto-merge March 6, 2026 23:23
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Your preview site for the vector.dev will be ready in a few minutes, please allow time for it to build.

Heres your preview link:
vector.dev preview

@thomasqueirozb thomasqueirozb added this pull request to the merge queue Mar 7, 2026
Merged via the queue into master with commit b519edd Mar 7, 2026
69 of 71 checks passed
@thomasqueirozb thomasqueirozb deleted the automatic-vrl-documentation-website branch March 7, 2026 19:33
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

domain: ci Anything related to Vector's CI environment domain: external docs Anything related to Vector's external, public documentation domain: vdev Anything related to the vdev tooling no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-generate VRL function documentation

3 participants